﻿<UserControl x:Class="GeoPlugin.RomaniaViewBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Width="800" Height="600">
    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <Storyboard x:Name="ShowPopup" x:Key="ShowPopup2">
                <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="GridMenu" Storyboard.TargetProperty="(UIElement.Opacity)">
                    <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Name="HidePopup" x:Key="HidePopup2">
                <DoubleAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="GridMenu" Storyboard.TargetProperty="(UIElement.Opacity)">
                    <DiscreteDoubleKeyFrame KeyTime="0" Value="0" />
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
        </Grid.Resources>
        <Viewbox x:Name="MapsViewbox">
            <Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    x:Name="MapsHotSpot" Width="1200" 			
                    Height="1000"
                    UseLayoutRounding="False">
                <Image x:Name="Image" Height="1000" Stretch="Fill" Width="1200" Canvas.Left="0" Canvas.Top="0"/>
                <Canvas Name="Cluj" Width="1200" Height="1000">
                    <Path Data="M326.24434,303.16742 L328.00714,273.25608 341.57995,277.78067 352.89159,291.35549 370.98894,289.09302 386.82471,277.78067 395.87395,289.09302 418.49641,266.46832 420.75815,243.84415 447.90479,228.00688 450.1673,209.90699 470.52704,209.90699 461.47789,232.53177 477.31342,259.68122 486.36235,284.56821 486.36235,316.24256 468.26443,350.17946 463.73999,372.80372 425.2823,388.64105 425.2823,372.80413 391.34904,363.7543 359.678,368.27921 346.1047,352.44202 328.00697,343.39219&#xd;&#xa;314.43366,309.45534 z" Fill="#FFE72E04" Height="179.733" Canvas.Left="314.432" Stretch="Fill" Stroke="Black" Canvas.Top="209.907" Width="172.946" Opacity="0.3"/>
                </Canvas>
                <Canvas Name="Ilfov" Width="1200" Height="1000">
                    <Path Data="M738.00905,789.59276 L757.87107,764.20566 744.29643,737.05603 735.24663,714.43084 703.57141,712.1685 696.78439,730.26804 689.99709,743.84292 701.3092,766.46772 701.3092,784.56757 717.14654,795.87997 z" Fill="#FFE72E04" Height="84.71" Canvas.Left="689.998" Stretch="Fill" Stroke="Black" Canvas.Top="712.17" Width="68.873" Opacity="0.3"/>
                </Canvas>
            </Canvas>
        </Viewbox>

        <Popup x:Name="contextMenu" Opened="contextMenu_Opened" Closed="contextMenu_Closed">
            <Grid x:Name="GridMenu" Opacity="0.9">
                <Border BorderBrush="Azure" BorderThickness="1" CornerRadius="3" >

                    <ListBox x:Name="contextListBox" Opacity="0.9" />

                </Border>
            </Grid>
        </Popup>

    </Grid>
</UserControl>
